/*
 * @Description: 错误日志
 * @Author: iamsmiling
 * @Date: 2021-07-11 14:20:47
 * @LastEditTime: 2021-07-11 19:40:30
 */

const {DataTypes,Model} = require('sequelize')
const sequelize = require('../index')


class ChimeraLogModel extends Model{}

///0--> pending 1-->active 2-->finished 3-->deleted

ChimeraLogModel.init({
    status:{
        type:DataTypes.INTEGER,
        defaultValue:0,
    },
    content:{
        type:DataTypes.STRING(2048),
        allowNull:true
    },
    deleted:{
        type:DataTypes.BOOLEAN,
        defaultValue:false
    }
},{
    sequelize,
    modelName:"ChimeraLogModel",
    tableName: "chimera_log",
    timestamps:true
})

ChimeraLogModel.sync({
    force:false
})

module.exports = ChimeraLogModel